//
//  DropMenuViewCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/5/16.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "DropMenuViewCell.h"

@interface DropMenuViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *nameLab;

@end

@implementation DropMenuViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    if (selected) {
        self.nameLab.textColor = [UIColor redColor];
    }else {
        self.nameLab.textColor = [UIColor blackColor];
    }
}
- (void)setName:(NSString *)name
{
    _name = name;
    self.nameLab.text = name;
}

- (void)setAlignment:(NSTextAlignment)alignment
{
    _alignment = alignment;
    self.nameLab.textAlignment = alignment;
}

@end
